package com.linsir.ext.beetl.format;

import org.beetl.core.Format;

/**
 * @author linsir
 * @title: TimeFormat
 * @projectName linsir-mu
 * @description: TODO
 * @date 2021/12/3 22:52
 */
public class TimeFormat implements Format {

        @Override
        public Object format(Object data, String pattern) {
                if (null == data) {
                        return null;
                } else {
                        String str = data.toString();
//			new DateTime();
//			// XSS简单过滤
//			content = HtmlUtil.XSSEncode(content);
                        return str;
                }
        }
}
